<%@page contentType="text/html"%>
<%@page pageEncoding="UTF-8"%>
<%@page import="org.fiel.FielConstants"%>

<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
   "http://www.w3.org/TR/html4/loose.dtd">

<html>
    <head>
        <title>FIEL - <bean:message key="menu.avisos"/></title>
        <jsp:include page="./meta.jsp" flush="false"/>
    </head>
    <body style="margin-top:0;margin-bottom:0;background-color:#cccccc">
        <table align="center" border="0" cellpadding="0" cellspacing="0" height="80%" width="750px" style="background-color:#ffffff">
            <tr>
                <td height="15%" valign="top">
                    <jsp:include page="./header.jsp" flush="false"/>
                </td>
            </tr>
            <tr>
                <td height="5%">
                    <jsp:include page="./menu.jsp" flush="false">
                        <jsp:param name="option" value="revista"/>
                    </jsp:include>
                </td>
            </tr>
            <tr>
                <td>
                    <table border="0" align="center" width="100%" cellpadding="0" cellspacing="0">
                        <tr>
                            <td width="160px" valign="top">
                                <jsp:include page="left_menu_avisos.jsp"/>
                            </td>
                            <td valign="top" style="padding-bottom:10;padding-left:10;padding-top:10" height="75%">
                            
                                <html:errors/>
                                <html:form action="/adm/Areas.do?method=save">
                                    <html:hidden property="id"/>
                                    <p align="center">
                                        <logic:equal name="editable" value="true" scope="request">
                                            <html:submit value="Grabar" styleClass="button"/>
                                            <html:reset value="Borrar" styleClass="button"/>
                                        </logic:equal>
                                        <logic:notEqual name="editable" value="true" scope="request">
                                            <input type="button" value="Editar" onclick="javascript: location.href='/adm/Areas.do?method=view&amp;editable=true&amp;id=<bean:write name="AreaForm" property="id"/>';" style="height:18pt;width:25%;background-color:rgb(204, 204, 204);color:rgb(0, 0, 0);font-family: arial; font-size: 9pt;font-weight:normal">
                                            <input type="button" value="Eliminar" onclick="javascript: location.href='/adm/Areas.do?method=delete&amp;id=<bean:write name="AreaForm" property="id"/>';" style="height:18pt;width:25%;background-color:rgb(204, 204, 204);color:rgb(0, 0, 0);font-family: arial; font-size: 9pt;font-weight:normal">
                                        </logic:notEqual>
                                    </p>
                                    <table border="1" cellpadding="5" cellspacing="0" width="80%" style="font-family:arial;font-size:8pt" align="center">
                                        <tr>
                                            <th align="right" width="30%" style="background-color:#3399ca;color:#ffffff;border-style:none">
                                                Nombre del cliente:
                                            </th>
                                            <td valign="top" width="70%">
                                                <logic:equal name="editable" value="true" scope="request">
                                                    <html:text size="50" maxlength="100" style="border:1px solid #cccccc" property="aviso.nombreCliente"/>
                                                </logic:equal>
                                                <logic:notEqual name="editable" value="true" scope="request">
                                                    <bean:write name="AreaForm" property="aviso.nombreCliente"/>
                                                </logic:notEqual>
                                            </td>
                                        </tr>
                                    </table>
                                </html:form>
                            
                            </td>
                        </tr>
                    </table>
                </td>
            </tr>
            <tr>
                <td height="5%">
                    <jsp:include page="footer.jsp"/>
                </td>
            </tr>
        </table>
    </body>
</html>

<script language="javascript">
    showLabel("ver");
    document.forms[0].nombre.focus();
</script>